<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let d = prompt("你输入你的成绩");
			d = parseInt(d);
			d = Math.floor(d / 10);

			switch (d) {
				case 0:
				case 1:
				case 2:
				case 3:
				case 4:
				case 5:
					alert("不及格!");
					break;
				case 6:
					alert("及格!");
					break;
				case 7:
					alert("良好!");
					break;
				case 8:
					alert("优秀!");
					break;
				case 9:
				case 10:
					alert("天才!");
					break;
				default:
					alert("你输入的成绩已超出范围，请重新刷新再输入成绩!");
					break;
			}
	
		</script>
	</body>
</html>
